import java.util.Scanner;

public class text28 {
    public static void main(String[] args) {
        int i = 0;

        for(i = 1; i <= 150; i++)
        {
            if( i % 3 == 0)
                System.out.println(i + "\tfoo");
            else if(i % 5 == 0)
                System.out.println(i + "\tbiz");
            else if(i % 7 == 0)
                System.out.println(i + "\tbiz");
            else
                System.out.println(i);
        }
    }
}